<%--
  Created by IntelliJ IDEA.
  User: leman
  Date: 2017/7/12
  Time: 9:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<blockquote class="layui-elem-quote" style="line-height: 15px;">
    <a class="bt" href="" target="_blank" ng-click="active.nextPage('20', '应收账单管理', '内容16', 'receivable')">应收账单管理</a> > 应收确认账单
</blockquote>
<%--<form class="layui-form" action="">--%>
<div id="seaBox" ng-hide="mySea">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">客户</label>
            <div class="layui-input-inline">
                <input type="text" name="number" lay-verify="required|number" autocomplete="off" class="layui-input layui-disabled" ng-model="data.bill.consignorName" readonly="readonly">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">账单编号</label>
            <div class="layui-input-inline">
                <input type="text" name="number" lay-verify="required|number" autocomplete="off" class="layui-input layui-disabled" ng-model="data.bill.billCode" readonly="readonly">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">账单状态</label>
            <div class="layui-input-inline">
                <input type="text" name="number" lay-verify="required|number" autocomplete="off" class="layui-input layui-disabled" ng-model="billStatus" readonly="readonly">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">订单金额</label>
            <div class="layui-input-inline">
                <input type="text" name="number" lay-verify="required|number" autocomplete="off" class="layui-input layui-disabled" ng-model="data.bill.orderCost" readonly="readonly">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">结算金额</label>
            <div class="layui-input-inline">
                <input type="text" name="number" lay-verify="required|number" autocomplete="off" class="layui-input layui-disabled" ng-model="data.bill.settleCost" readonly="readonly">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">商品数量</label>
            <div class="layui-input-inline">
                <input type="text" name="number" lay-verify="required|number" autocomplete="off" class="layui-input layui-disabled" ng-model="data.bill.goodsSum">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">是否开发票</label>
            <div class="layui-input-inline">
                <%--<select class="valName sel"  id="invoiceStatus" lay-verify="required|number" ng-model="data.bill.invoiceStatus" ng-options="x.id as x.name for x in BillingOptions">--%>
                <%--</select>--%>
                <select class="valName"  id="invoiceStatus" ng-model="data.bill.invoiceStatus">
                    <option value="20">开票</option>
                    <option value="10">不开票</option>
                </select>
            </div>
        </div>
    </div>
</div>
<%--</form>--%>
<div class="layui-form-item" style="margin-bottom: 0;">
    <%--<button class="layui-btn layui-btn-normal" ng-click="export()">导出账单</button>--%>
    <button class="layui-btn" ng-click="active.confirm()" id="id" value="{{data.bill.id}}">确认账单</button>
</div>
<div style="overflow-x:auto;">
    <table class="layui-table" style="min-width: 1620px;max-width:2000px;margin-bottom: 0;">
        <tr>
            <th>序号</th>
            <th>客户订单号</th>
            <th>服务订单号</th>
            <th>客户</th>
            <th>下单日期</th>
            <th>起运地</th>
            <th>目的地</th>
            <th>品牌</th>
            <th>车系</th>
            <%--<th>车型</th>--%>
            <th>车架号</th>
            <th>数量</th>
            <th>订单价</th>
            <th>调整金额</th>
            <th>结算价</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
        <tr ng-repeat="x in data.list">
            <td style="display:none" ng-bind="x.id"></td>
            <td ng-bind="$index+1"></td>
            <td ng-bind="x.customerOrderCode"></td>
            <td ng-bind="x.serviceOrderCode"></td>
            <td ng-bind="x.consignorName"></td>
            <td ng-bind="x.createTime.substring(0,11)"></td>
            <td ng-bind="x.departProvinceName+'-'+x.departCityName"></td>
            <td ng-bind="x.receiptProvinceName+'-'+x.receiptCityName"></td>
            <td ng-bind="x.brandName"></td>
            <td ng-bind="x.vehicleName"></td>
            <%--<td ng-bind="x.createUser"></td>--%>
            <td ng-bind="x.vin"></td>
            <td ng-bind="x.amount"></td>
            <td ng-bind="x.sysCost"></td>
            <td ng-click="adjustBtn()"><a ng-bind="x.alterCost==null ? '0' : x.alterCost" style="color:red;cursor:pointer;text-decoration: underline;"></a></td>
            <td ng-bind="x.settleCost"></td>
            <td ng-bind="x.status==10?'待接单':(x.status==30?'待支付':(x.status==40?'执行中':(x.status==50?'已提车':(x.status==60?'已发车':(x.status==70?'运输中':(x.status==80?'已交车':(x.status==90?'已完成':'')))))))"></td>
            <td ng-click="delBtn()" style="color:blue;cursor:pointer;text-decoration: underline;">移除</td>
            <td style="display:none" ng-bind="x.comment==null ? '' : x.comment"></td>
        </tr>
    </table>
</div>
<div style="float:right;">
    <ul class="layui-box layui-laypage layui-laypage-default" style="margin-top: 10px;" >
        <li>
            <a ng-class="{true:'layui-btn-disabled'}[p_current==1]" href="javascript:void(0);" ng-click="p_index(this)">首页</a>
        </li>
        <li>
            <a ng-class="{true:'layui-btn-disabled'}[p_current==1]" href="javascript:void(0);" ng-click="prev_page(this)">上一页</a>
        </li>
        <%--这块是显示多少页的--%>
        <li ng-repeat="page in pages" ng-class="{true:'active'}[p_current==page]">
            <a class="layui-laypage-curr" href="javascript:void(0);" ng-click="load_page(page)">{{ page }}</a>
        </li>
        <li>
            <a ng-class="{true:'layui-btn-disabled'}[p_current==p_all_page]" href="javascript:void(0);" ng-click="next_page(this)">下一页</a>
        </li>
        <li>
            <a ng-class="{true:'layui-btn-disabled'}[p_current==p_all_page]" href="javascript:void(0);" ng-click="p_last()">尾页</a>
        </li>
    </ul>
    <span>共{{count}}条</span>
    <span style="padding-left: 10px;">到第
        <input id="on" type="text" value="{{p_current}}"/>页
        <button class="layui-btn layui-btn-small btn" ng-click="goBtn()">确定</button>
    </span>
</div>
<input type="hidden" id="sysCost" value="">
<input type="hidden" id="alterCost" value="">
<input type="hidden" id="settleCost" value="">
<input type="hidden" id="comment" value="">


